package com.v9.system.service;


import com.v9.common.core.service.IAbstractDefaultService;
import com.v9.common.dto.MenuTreeDto;
import com.v9.system.domain.MenuInfo;
import com.v9.system.domain.vo.RouterVo;

import java.util.List;

/**
 * @author lunshi
 */
public interface MenuInfoService extends IAbstractDefaultService<MenuInfo>{

    List<MenuInfo> queryByPin(String pin);

    List<MenuInfo> queryByRoleId(Long roleId);
    /**
     * *
     * @param list
     * @return
     */
    List<MenuTreeDto> buildTreeByList(List<MenuInfo> list);

    public List<RouterVo> buildMenus(List<MenuTreeDto> menus);
}
